package com.dto.dataenum;

/**
 * @author:LG
 * @date:Created at 2019/03/09
 */
public enum  MessageEnum {
    //会员模块
    //查询全部
    GETAllMEMBERSUCCESS(200,Messages.GETAllMEMBERSUCCESS),
    GETAllMEMBERFAIL(409,Messages.GETAllMEMBERFAIL),
    //根据主键查询
    GETMEMBERBYMNOSUCCESS(200,Messages.GETMEMBERBYMNOSUCCESS),
    GETMEMBERBYMNOFAIL(409,Messages.GETMEMBERBYMNOFAIL),
    //增加会员
    ADDMEMBERSUCCESS(200,Messages.ADDMEMBERSUCCESS),
    ADDMEBERFAIl(409,Messages.ADDMEBERFAIl),

    //增加会员
    UPDATEMEMBERSUCCESS(200,Messages.UPDATEMEMBERSUCCESS),
    UPDATEMEBERFAIl(409,Messages.UPDATEMEBERFAIl),


    //普通分页查询会员
    GETMEMBERSBYPAGESUCCESS(200,Messages.GETMEMBERSBYPAGESUCCESS),
    GETMEMBERSBYPAGEFAIl(409,Messages.GETMEMBERSBYPAGEFAIl),

    //搜索分页查询会员
    SEARCHMEMBERSBYPAGESUCCESS(200,Messages.SEARCHMEMBERSBYPAGESUCCESS),
    SEARCHMBERSBYPAGEFAIl(409,Messages.SEARCHMBERSBYPAGEFAIl),

    //会员购买方案
    BUYPROGRAMESUCCESS(200,Messages.BUYPROGRAMESUCCESS),
    BUYPROGRAMEFAIl(409,Messages.BUYPROGRAMEFAIl),

    //排行榜刷新
    CHARTREFRESHSUCCESS(200,Messages.CHARTREFRESHSUCCESS),
    CHARTREFRESHFAIl(409,Messages.CHARTREFRESHFAIl);

    private Integer code;
    /**
     * 状态信息
     */
    private String msg;


    MessageEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
